package com.ykht.proj.activity.vo;


import com.ykht.proj.activity.entity.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@ToString
public class VCardInfo {
	@ApiModelProperty("卡相关")
	private VCard card = new VCard();
	@ApiModelProperty("卡标签")
	private String label;
	@ApiModelProperty("活动相关")
	private VActivity activity = new VActivity();
	@ApiModelProperty("活动卡优惠信息")
	private VActivityCard activityCard = new VActivityCard();
	@ApiModelProperty("可用门店列表")
	private List<ShopVo> shopList = new ArrayList<>();
//	@ApiModelProperty("已售次数")
//	private Integer buyNum;
	@ApiModelProperty("折扣")
	private BigDecimal discount;
	@ApiModelProperty("0可买1已售罄2购买次数用完")
	private Integer canBuy = 0;
	@Data
	@ToString
	public static class ShopVo{

		@ApiModelProperty(value="省id")
		private Integer provinceId;
		@ApiModelProperty(value="省名称")
		private String provinceName;
		@ApiModelProperty(value="城市id")
		private Integer cityId;
		@ApiModelProperty(value="城市名称")
		private String cityName;
		@ApiModelProperty(value="区域id")
		private Integer areaId;
		@ApiModelProperty(value="区域名称")
		private String areaName;
		@ApiModelProperty(value="店铺地址")
		private String address;
		@ApiModelProperty(value="品牌id")
		private Long brandId;
		@ApiModelProperty(value="门店id")
		private Long shopId;
		@ApiModelProperty(value="使用次数")
		private Integer useNum = 0;
		@ApiModelProperty(value="共多少次")
		private Integer allNum = 0;
		@ApiModelProperty(value="门店name")
		private String shopName;
		@ApiModelProperty(value="距离")
		private Long distance;
		@ApiModelProperty(value="商圈")
		private String tradeArea;
		@ApiModelProperty(value="门店标签")
		private String label;
		@ApiModelProperty(value="门店logo")
		private String logo;
		@ApiModelProperty(value="优惠方案")
		private VDiscountPlan plan = new VDiscountPlan();
	}
}
